package com.lanou.utils;

import org.springframework.stereotype.Repository;

/**
 * Created by dllo on 18/3/10.
 */
public class AjaxResult {
    private String Code;
    private String msg;
    private Object data;

    @Override
    public String toString() {
        return "AjaxResult{" +
                "Code='" + Code + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    public AjaxResult(String code, String msg, Object data) {
        Code = code;
        this.msg = msg;
        this.data = data;
    }

    public AjaxResult(){

    }

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
